<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    	<title>统战成员学习平台</title>
	    <link rel="stylesheet" type="text/css" href="../../css/base.css" />
	    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
	</head>
	<body>
		<div id='app' style="display:none" v-show="true">
			<ul class="cert_list">
				<li class="exam_result_info">
					<div :class="scoreList.comprehensiveIsQualified ? 'passed' : 'not_passed'">
						<p class="chapter"><i class="icon_final_exam"></i>综合考试</p>
						<p class="score">分数：<span>{{scoreList.comprehensiveScore || 0}}分</span></p>
					</div>
				</li>
				<template v-for="item of scoreList.chapterScoreList">
					<li v-if="item.qualifiedScore" class="exam_result_info">
						<div :class="item.isQualified ? 'passed' : 'not_passed'">
							<p class="chapter"><i class="icon_chapter"></i>{{item.cOrderName + ' ' + item.nodeName}}</p>
							<p class="score">分数：<span>{{item.score || 0}}</span>/{{item.fullmarks}}分</p>
						</div>
					</li>
				</template>
			</ul>
		</div>
		<script type="text/javascript" src="../../script/api.js"></script>
		<script type="text/javascript" src="../../script/vue.min.js"></script>
		<script type="text/javascript" src="../../script/common.js"></script>
		<script type="text/javascript" src="../../script/layer_mobile/layer.js"></script>
		<script type="text/javascript">
		    new Vue({
				el: '#app',
		     	data: {
					scoreList: {},
					courseId: 0,
					scheduleId: 0
		     	},
				mounted: function() {
		        	var $this = this;
		        	apiready = function() {
						$this.courseId = api.pageParam.courseId;
						$this.scheduleId = api.pageParam.scheduleId;
						api.parseTapmode();
						$this.init();
                	}
		    	},
		    	methods: {
					init: function() {
			        	var $this = this;
						post('/client/learnCenter/showScoreList', {
							courseId: $this.courseId,
							scheduleId: $this.scheduleId
						}, function(ret) {
							if(ret.isSuccess) {
								$this.scoreList = ret.data
							} else {
								msgUtil.toast({
								    msg: ret.message
								});
							}
						})
					}
		    	}
		    });
		</script>
	</body>
</html>
